/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.sicav.dao;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;


/**
 *
 * @author walter
 */
@Stateless
public class socioDAO {

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
    
@PersistenceContext(unitName = "SicavPU")
    private EntityManager em;
    
    public void persist(Object object) {
        em.persist(object);
    }   
   /*public boolean eliminaAddress(Address address){
        try {
            Address adr = em.find(Address.class, address.getIdAdr());
            em.remove(adr);
            return true;
        } catch (Exception e) {
            return false;
        }
    }*/
}
